<?php

if(!defined('ADMIN')){
	exit('Access Denied');
}

if(isset($_GET["id"])){ $_POST['ids']=$_GET["id"];}
$id_arr=$_POST['ids'];

if(!empty($id_arr)){
    if(!is_array($id_arr)){
        $id_arr1[]=$id_arr;
    }else{
        $id_arr1=$id_arr;
    }
    $data=array("disabled"=>0);
    $ezhand->update("modelfield",$data,'id in ('.implode(",",$id_arr1).')');  
    jumpajax('200',"设置成功",'');
}else{
    jumpajax('300','没有选择字段','');
}
?>